package com.qfjy.zhangdeyu;

/**
 * @author ：张德玉
 * @version : 1.0
 * @date : 2022/9/13 19:27
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User b = new User("zhangdeyu");
        User g = new User("yanwen");

        g.sendMessage("Hi! zhangdeyu!");
        b.sendMessage("Hello! yanwen!");
    }
}
